// import Vue from 'vue';
const state = {
  visible: true,
  direction: 'rtl', // 打开方向
  title: '详情页', // 标题
  tabs: [
    {
      label: '基本信息',
      type: 'form',
      conditions:[
        
      ],
      model: {}
    },
    {
      label: '基本信息2',
      type: 'table',
      columns: [
        {
          label: "index",
          prop: "gonghao",
          type: "index",
          show: true,
        },
        {
          label: "工号",
          prop: "gonghao",
          type: "input",
          show: true,
        },
        {
          label: "姓名",
          prop: "gonghao",
          type: "input",
          show: true,
        },
        {
          label: "姓名",
          prop: "gonghao",
          type: "input",
          show: true,
        },
        {
          label: "姓名",
          prop: "gonghao",
          type: "select",
          show: true,
        },
      ],
      data: []
    }
  ]
};
const actions = {
  /**
   * 表单设值
   * @param {String} visible
   * @param {Boolean} title
   * @param {Array} conditions
   * @param {String} newsTitle
   * @param {String} newsContent
   * @param {Boolean} previewShow
   * @param {Object} model
   * @param {Array} handle
   * @param {Object} rules
   */
  toggleSetModel({ state }, data) {
    Object.assign(state, { ...data });
  },
};

const mutations = {};

export default {
  namespaced: true,
  mutations,
  actions,
  state
};
